package Text_37;

public class Code {

	public static void main(String[] args) {
		 //排列出三位不重复的数字
		int cont = 0;
	        System.out.println();
		for (int i = 1; i < 5; i++)
		{
			for (int j = 1; j < 5; j++)
			{
				for (int k = 1; k < 5; k++)
				{
					if (i != k && i != j && j != k)
					{
	                    System.out.println(i+" "+j+" "+k);
						cont++;
					}
				}
			}
		}
	        System.out.println("共有"+cont+"种");

	}

}
